package com.hafu.model;

import java.io.Serializable;
import java.util.Date;

public class Student implements Serializable {
    private String studentId;
    private String name;
    private String gender;
    private Integer age;
    private String major;
    private Date enrollmentDate;
    private String phone;

    public Student() {
    }

    public Student(String studentId, String name, String gender, Integer age,
                   String major, Date enrollmentDate, String phone) {
        this.studentId = studentId;
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.major = major;
        this.enrollmentDate = enrollmentDate;
        this.phone = phone;
    }

    // Getter & Setter 方法
    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Date getEnrollmentDate() {
        return enrollmentDate;
    }

    public void setEnrollmentDate(Date enrollmentDate) {
        this.enrollmentDate = enrollmentDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentId='" + studentId + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", major='" + major + '\'' +
                ", enrollmentDate=" + enrollmentDate +
                ", phone='" + phone + '\'' +
                '}';
    }
}